<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <h2>{{message}}</h2>
  <!--错误的做法：这里不可以使用mustache语法-->
  <!--  <img src="{{imgURL}}">-->
  <img v-bind:src="imgURL">

  <a v-bind:href="aHref">百度一下</a>
  <!--语法糖写法-->
  <a :href="aHref">百度一下</a>
</div>

<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: '你好啊',
      imgURL: 'https://vuejs.org/images/logo.png',
      aHref: 'http://www.baidu.com'
    }
  })
</script>
</body>
</html>
